package com.bdqn.bookshop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.bookshop.entity.Classify;
import org.apache.ibatis.annotations.Select;

/**
 * @author : 罗若然[LUO_RUO_RAN]
 * @date : 2020-07-24 15:51
 **/
public interface ClassifyMapper extends BaseMapper<Classify> {

    @Select("select count(*) from classify where parent_id in (${id})")
    Integer selectSublevelCountById(String id);
}
